package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:55
 * @Description: TODO
 */
public class StrangerWarning {
    private Long id;

    private Boolean mark;

    private String time;

    private String address;

    private String imageSrc;

    public com.caipin.domain.web.StrangerWarning setId(Long id) {
        this.id = id;
        return this;
    }

    public com.caipin.domain.web.StrangerWarning setMark(Boolean mark) {
        this.mark = mark;
        return this;
    }

    public com.caipin.domain.web.StrangerWarning setTime(String time) {
        this.time = time;
        return this;
    }

    public com.caipin.domain.web.StrangerWarning setAddress(String address) {
        this.address = address;
        return this;
    }

    public com.caipin.domain.web.StrangerWarning setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.StrangerWarning))
            return false;
        com.caipin.domain.web.StrangerWarning other = (com.caipin.domain.web.StrangerWarning)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$mark = getMark(), other$mark = other.getMark();
        if ((this$mark == null) ? (other$mark != null) : !this$mark.equals(other$mark))
            return false;
        Object this$time = getTime(), other$time = other.getTime();
        if ((this$time == null) ? (other$time != null) : !this$time.equals(other$time))
            return false;
        Object this$address = getAddress(), other$address = other.getAddress();
        if ((this$address == null) ? (other$address != null) : !this$address.equals(other$address))
            return false;
        Object this$imageSrc = getImageSrc(), other$imageSrc = other.getImageSrc();
        return !((this$imageSrc == null) ? (other$imageSrc != null) : !this$imageSrc.equals(other$imageSrc));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.StrangerWarning;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $mark = getMark();
        result = result * 59 + (($mark == null) ? 43 : $mark.hashCode());
        Object $time = getTime();
        result = result * 59 + (($time == null) ? 43 : $time.hashCode());
        Object $address = getAddress();
        result = result * 59 + (($address == null) ? 43 : $address.hashCode());
        Object $imageSrc = getImageSrc();
        return result * 59 + (($imageSrc == null) ? 43 : $imageSrc.hashCode());
    }

    public String toString() {
        return "StrangerWarning(id=" + getId() + ", mark=" + getMark() + ", time=" + getTime() + ", address=" + getAddress() + ", imageSrc=" + getImageSrc() + ")";
    }

    public StrangerWarning(Long id, Boolean mark, String time, String address, String imageSrc) {
        this.id = id;
        this.mark = mark;
        this.time = time;
        this.address = address;
        this.imageSrc = imageSrc;
    }

    public StrangerWarning() {}

    public Long getId() {
        return this.id;
    }

    public Boolean getMark() {
        return this.mark;
    }

    public String getTime() {
        return this.time;
    }

    public String getAddress() {
        return this.address;
    }

    public String getImageSrc() {
        return this.imageSrc;
    }
}

